﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_SetUp.Positions
{
    /// <summary>
    /// 职位管理
    /// </summary>
    public class TMS_Position : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 职位名称
        /// </summary>
        [Required(ErrorMessage = ("职位名称不能为空"))]
        [StringLength(20)]
        public string Position_Name { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        [StringLength(20)]
        public string Position_Alias { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        [Required(ErrorMessage = ("部门不能为空"))]
        [StringLength(150)]
        public string Department_Id { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool Position_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Position_DateTime { get; set; } = DateTime.Now;
    }
}
